package com.agranee.timesheet.service;

import javax.faces.bean.ManagedProperty;

import org.springframework.transaction.annotation.Transactional;

import com.agranee.timesheet.dao.EmployeeDaoImpl;
import com.agranee.timesheet.daoable.IEmployee;
import com.agranee.timesheet.model.Employee;
import com.agranee.timesheet.serviceable.IEmployeeService;

public class LoginServiceImpl implements IEmployeeService {
  // Employeable employeeable;

	private EmployeeDaoImpl employeeDao;

	/*public Employeable getEmployeeDao() {
		return employeeable;
	}



	public void setEmployeeDao(Employeable employeeable) {
		this.employeeable = employeeable;
	}*/



	@Override
	public Employee getUserByUserId(String employeeUserId) {
		//employeeDao=new EmployeeDao();
		return getEmployeeDao().getEmployeeByUserId(employeeUserId);
		
		
	}

	public EmployeeDaoImpl getEmployeeDao() {
		return employeeDao;
	}

	public void setEmployeeDao(EmployeeDaoImpl employeeDao) {
		this.employeeDao = employeeDao;
	}
	public Employee getUserByEmployeeId(String employeeId){
		return getEmployeeDao().getEmployeeByEmployeeId(employeeId);
	}

	public void resetPasswordByEmployeeId(String employeeId,String newPassword) {
		this.getEmployeeDao().resetPassword(employeeId,newPassword);
		
	}

	/*@Override
	public void retriveUserId(String employeeId) {
		this.get
		
	}

	@Override
	public void retrivePassword(String employeeId) {
		
		
	}*/
	
	

}
